package cn.fintecher.pangolin.entity.mysql;

import cn.fintecher.pangolin.common.enums.ApprovalResult;
import cn.fintecher.pangolin.common.enums.ApprovalStatus;
import cn.fintecher.pangolin.common.enums.BaseSelect;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;
import java.util.Set;

/**
 * @Author wangxiangdong
 * @Description 流程节点配置
 * @Date 14:16 2019/5/22
 **/
@Data
@Entity
@Table(name = "flow_node_config")
public class FlowNodeConfig extends BaseEntity{

    @ApiModelProperty("审批节点值")
    private Integer nodeValue;

    @ApiModelProperty(value = "审批人员")
    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = "approve_id")
    private Set<ApproverConfig> approverConfigs;

}
